TokenBucket

This is a bucket that is mainly used for rate-limiting. After the one-time burst is used, the refill process begins, and after which, consumption is limited by the refill rate (which is derived from the bucket's size, as well as refill time)

Members

Mixins

__anonymous
mixin BaseModel
Undocumented in source.

Variables

oneTimeBurst
long oneTimeBurst;

The initial size of a token bucket

refillTime
long refillTime;

Time in MS for the bucket to refill

size
long size;

Total number of tokens this bucket can hold

Mixed In Members

From mixin BaseModel

stringify
string stringify()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta